import random*
n=int(input())
p=0 #попадания
if n<=0 :
    print("error")
    else:
        for i in range(n):
            x=random randint(-100,100)
            y=random randint(-100,100)
            if x >= -7 and x>= 5 and y>= -8 and y <= 5:
                p += 1
print(p)
